<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/menu.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/menuBar.js"></script>
</head>
<body>
	<div id="header">
		<div id="title">
			<a href = "main.do"><img src = "images/main/logo_top.gif" style = "width: 600px; height: 143px;"/></a>
			<form action="#" id="search_form" name="search_form" method="get">
				
				<input type="search" id="search" name="search" title="검색어를 넣어주세요." 
				placeholder = "검색어를 넣어봐!">
				
				<input type="submit" id="search_Btn" name="search_Btn"
					value="검색GO" title="검색해주세요." class = 'submit'>
				
			</form>
		</div>
<%
String email = (String) session.getAttribute("email");
if(email == null || email.equals("")){
%>
		<!-- 오른쪽 상단 로그인/회원가입 버튼 -->
		<div id="sub_menu" align="right">
		<input type = 'button' id = 'loginBtn' value = 'LOGIN'
		onclick = "location.href='login.do'"/>
		
		<input type = 'button' id = 'joinBtn' value = 'JOIN'
		onclick = "location.href='join_check.do'"/>
		</div>
<%
}else{
%>
		<!-- 오른쪽 상단 로그아웃/회원가입 버튼 -->
		<div id="sub_menu">
		<%=session.getAttribute("user_name") %>님 반갑습니다 :)<p/>
		
		<input type = 'button' id = 'loginBtn' value = 'LOGOUT'
		onclick = "location.href='logOut.do'"/>
		
		<input type = 'button' id = 'joinBtn' value = 'MY PAGE'
		style = "width: 80px;"
		onclick = "location.href='myPage.do'"/>
		</div>
<%
}
%>

<!-- 메뉴 수정 이름: gnb_menu1 -->
	<div id = "menu_div" align="center">
		<ul id = "gnb_menu1">
			<li>
			<a href="main.do">HOME</a>
			</li>
			
			<li>
			<a href="#">TASTY</a>
				<ul>
					<li><a href="location.do"><span>지역별 맛집</span></a></li>
					<li><a href="thema.do"><span>테마별 맛집</span></a></li>
				</ul>
			</li>
			
			<li>
			<a href="#">REVIEW</a>
				<ul>
					<li><a href="userReview.do"><span>유저 리뷰</span></a></li>
					<li><a href="specialReview.do"><span>스페셜 리뷰</span></a></li>
				</ul>
			</li>
			
			<li>
			<a href="#">COMMUNITY</a>
				<ul>
					<li><a href="notice.do"><span>공지 사항</span></a></li>
					<li><a href="recommend.do"><span>맛집 추천</span></a></li>
				</ul>
			</li>
			<li style = "height: 61px; width:400px;background: #5E5E5E;"></li>
			
		</ul>
	</div>
</div>


</body>
</html>